import {BasicBo, SearchBo} from "@/common/BasicDto.ts";
import {Column} from "@/common/Column.ts";

class CarVo{
    public id?: number;
    public brand?:string
    public series?: string;
    public userId?:number;
    public userName?:string;
    public image?:string;
    public plate?:string

    public static getColumn() {
        return [
            new Column("车辆图片", "image"),
            new Column("车牌号", "plate"),
            new Column("品牌", "brand"),
            new Column("系列", "series"),
            new Column("所属人", "userName"),
        ] as Array<Column>
    }
}

class CarBo extends BasicBo<CarVo>{
    public id?: number;
    public brand?:string
    public series?: string;
    public userId?:number;
    public image?:string;
    public plate?:string
}

class CarSearchBo extends SearchBo{
    public id?: number;
}

export {CarVo,CarBo,CarSearchBo}